projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edc3b9a
)
ostree-repo-pull: Fix inverted assert condition for maxdepth
author
Giuseppe Scrivano
<gscrivan@redhat.com>
Thu, 30 Oct 2014 09:58:50 +0000
(10:58 +0100)
committer
Colin Walters
<walters@verbum.org>
Thu, 30 Oct 2014 15:46:02 +0000
(11:46 -0400)
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
src/libostree/ostree-repo-pull.c
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-repo-pull.c
b/src/libostree/ostree-repo-pull.c
index f687ab99d099dbda90e856d494cc5b6a629f97f1..e1ca435128b976bdb4d9df8fb1918ab03a45e0a2 100644
(file)
--- a/
src/libostree/ostree-repo-pull.c
+++ b/
src/libostree/ostree-repo-pull.c
@@
-1338,7
+1338,7
@@
ostree_repo_pull_with_options (OstreeRepo *self,
(void) g_variant_lookup (options, "depth", "i", &pull_data->maxdepth);
}
- g_return_val_if_fail (pull_data->maxdepth
<
-1, FALSE);
+ g_return_val_if_fail (pull_data->maxdepth
>=
-1, FALSE);
if (dir_to_pull)
g_return_val_if_fail (dir_to_pull[0] == '/', FALSE);